package com.sws.orderMS.pojo;

import java.util.HashMap;
import java.util.Map;

public abstract class User {
	
	protected long id;
	protected String name;
	protected String username;
	protected String password;
	protected String email;
	protected String phone;
	protected String address;
	protected String note;
	protected boolean isManager = false;
	protected static Map<Integer, String> status;
	protected int currentStatus;
	
	static {
		status = new HashMap<>();
		status.put(1, "admin");
		status.put(2, "user_exist");
		status.put(3, "user_del");
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public boolean isManager() {
		return isManager;
	}

	public void setManager(boolean isManager) {
		this.isManager = isManager;
	}

	public int getCurrentStatus() {
		return currentStatus;
	}

	public void setCurrentStatus(int currentStatus) {
		this.currentStatus = currentStatus;
	}
	
}
